package com.dz.applet;

import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.dz.gateway.filter.ErrorFilter;
import com.dz.gateway.filter.ResponseFilter;

/**
 * Hello world!
 *
 */
@EnableZuulProxy
@SpringCloudApplication
@Configuration
public class DzAppletApplication {

	@Bean
	public ResponseFilter responseFilter() {
		return new ResponseFilter();
	}

	@Bean
	public ErrorFilter errorFilter() {
		return new ErrorFilter();
	}

	public static void main(String[] args) {
		SpringApplication.run(DzAppletApplication.class, args);
	}
}